#!/usr/bin/env python

import sys
try:
    import pygtk
    pygtk.require("2.0")
except:
    pass
try:
    import gtk
    import gtk.glade
except:
    sys.exit(1)

class Debugger:
    def hello(self, widget, data=None):
        print "hello"

    def __init__(self):
        self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
        self.window.connect("destroy", self.destroy)

        self.button = gtk.Button("hello")
        self.button.connect("clicked", self.hello, None)
        self.window.add(self.button)

        self.button.show()

        self.window.show()

    def destroy(self, widget, data=None):
        gtk.main_quit()

    def main(self):
        gtk.main()

if __name__ == "__main__":
    hello = Debugger()
    hello.main()
